import cv2 as cv

cap = cv.VideoCapture("tcp://192.168.20.35:9003")

while True:
    _, frame = cap.read()

    if frame is None: continue

    cv.imshow("", frame)

    if cv.waitKey(1) & 0xFF == ord("q"):
        break

cv.destroyAllWindows()
cap.release()
